package cash.cmp.personal_financial_system.model;

import cash.cmp.personal_financial_system.utils.easyexcel.converter.SexConverter;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    @ExcelProperty("用户编号")
    int id;

    int relatedId;

    @ExcelProperty("用户名称")
    String name;
    @ExcelProperty(value = "性别", converter = SexConverter.class)
    int sex;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    @ExcelProperty("出生日期")
    Date birth;
    @ExcelProperty("电话")
    String tel;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ExcelProperty("注册时间")
    Date register;

    String headImage;

    String wechatId;

    String alipayId;

    String city;

}
